﻿@using Microsoft.Web.WebPages.OAuth
@model User.Web.Models.Account.LoginModel 

@{
    ViewBag.Title = PageTitles.Login;
}

<div class="row">
    <div class="col-md-12">
        @Html.ShowCustomMessage()
    </div>
</div>

@using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    <div class="row">
        <div class="col-md-3">
            &nbsp;
        </div>
        <div class="col-md-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4>@ViewBag.Title</h4>
                </div>

                <div class="panel-body">
                    <div class="form-group">
                        @Html.LabelFor(model => model.Username, new { @class = "col-lg-2 control-label" })
                        <div class="col-lg-10">
                            @Html.EditorFor(model => model.Username)
                            @Html.ValidationMessageFor(model => model.Username)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.Password, new { @class = "col-lg-2 control-label" })
                        <div class="col-lg-10">
                            @Html.EditorFor(model => model.Password)
                            @Html.ValidationMessageFor(model => model.Password)
                        </div>
                    </div>
                </div>
            
                <div class="panel-footer">
                    <input type="submit" class="btn btn-primary btn-lg btn-block" value="@ControlNames.Login" />
                </div>
            </div>
        </div>
        <div class="col-md-3">
            &nbsp;
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <p class="text-center">
                <small><a href="@Url.Action("RecoverPassword", "Account")">Passwort vergessen?</a></small>
            </p>
        </div>
    </div>
}

<div class="row">
    <div class="col-lg-3">
        &nbsp;
    </div>
    <div class="col-lg-6">
        @Html.Partial("_ExternalLoginsListPartial", OAuthWebSecurity.RegisteredClientData)
    </div>
    <div class="col-lg-3">
        &nbsp;
    </div>

</div>



@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
